package com.cate.service;

import com.cate.base.BasePageVO;
import com.cate.pojo.dto.EmployeeEditPasswordDTO;
import com.cate.pojo.dto.EmployeeInfoDTO;
import com.cate.pojo.dto.EmployeeLoginDTO;
import com.cate.pojo.dto.EmployeePageDTO;
import com.cate.pojo.entity.Employee;

/**
 * @CreateTime: 2023/7/26
 * @Author: <==lhd==>
 * @Description:
 */

public interface EmployeeService {

    /**
     * 登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    /**
     * 编辑密码
     * @param employeeEditPasswordDTO
     */
    void editPassword(EmployeeEditPasswordDTO employeeEditPasswordDTO);

    /**
     * 设置账号的状态
     * @param status
     */
    void setStatus(Integer status, Long id);


    BasePageVO<Employee> queryPage(EmployeePageDTO employeePageDTO);

    /**
     * 添加员工
     * @param employeeInfoDTO
     */
    void save(EmployeeInfoDTO employeeInfoDTO);

    /**
     * 查询员工信息
     * @param id
     * @return
     */
    Employee getById(Long id);

    /**
     * 更新信息
     * @param employeeInfoDTO
     */
    void update (EmployeeInfoDTO employeeInfoDTO);

}
